package cn.javass.dp.chianofresponsibility.mydemo2;

public class GoodsSaleEbo {

    public void test1() {


        ConcreteHandle1 concreteHandle1 = new ConcreteHandle1();
        ConcreteHandle2 concreteHandle2 = new ConcreteHandle2();
        ConcreteHandle3 concreteHandle3 = new ConcreteHandle3();
        concreteHandle1.setSuccesstor(concreteHandle2);
        concreteHandle2.setSuccesstor(concreteHandle3);
        concreteHandle1.handleRequest();


    }


}
